<!DOCTYPE HTML>
<html>
<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
    <title>碧叶之源</title>
<#--<meta name="keywords" content="关键词,5个左右,单个8汉字以内">-->
    <meta name="keywords" content="主页，碧叶之源"/>
<#--<meta name="description" content="网站描述，字数尽量空制在80个汉字，160个字符以内！">-->
    <meta name="description" content="欢迎进入碧叶之源！"/>


<#--妹子UI-->
    <link type="text/css" rel="stylesheet" href="/plugin/amaze/css/amazeui.min.css"/>
    <link type="text/css" rel="stylesheet" href="/plugin/amaze/css/amazeui.datatables.min.css"/>
    <link type="text/css" rel="stylesheet" href="/plugin/amaze/css/app.css">


<#--ztree树容器-->
    <#--<link rel="stylesheet" href="/plugin/ztree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css">-->


<#--自己的样式-->
    <link type="text/css" rel="stylesheet" href="/css/ztree/main.css">
    <style type="text/css">

    </style>

    <script type="text/javascript" src="/js/common/jquery.min.js" ></script>





</head>


<body data-type="index">


<div class="am-g tpl-g">
    <!-- 头部 -->
    <header>
        <!-- logo -->
        <div class="am-fl tpl-header-logo">
            <a href="/main/indexUrl.php"><img src="/img/common/logo.png" alt="点击返回首页"></a>
        </div>
        <!-- 右侧内容 -->
        <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
            <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
            </div>
            <!-- 搜索 -->
            <div class="am-fl tpl-header-search">
                <form class="tpl-header-search-form" action="javascript:;">
                    <button class="tpl-header-search-btn am-icon-search"></button>
                    <input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
                </form>
            </div>
            <!-- 其它功能-->
            <div class="am-fr tpl-header-navbar">
                <ul>
                    <!-- 欢迎语 -->
                    <li class="am-text-sm tpl-header-navbar-welcome">
                        <a href="javascript:;">欢迎回来, <span><@shiro.principal property="name"/></span> </a>
                    </li>

                    <!-- 新邮件 -->
                    <li class="am-dropdown tpl-dropdown" data-am-dropdown>
                        <a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
                            <i class="am-icon-envelope"></i>
                            <span class="am-badge am-badge-success am-round item-feed-badge">4</span>
                        </a>
                        <!-- 弹出列表 -->
                        <ul class="am-dropdown-content tpl-dropdown-content">
                            <li class="tpl-dropdown-menu-messages">
                                <a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
                                    <div class="menu-messages-ico">
                                        <img src="/user/getImgHred?id=<@shiro.principal property="imgHred"/>" alt="">
                                    </div>
                                    <div class="menu-messages-time">
                                        3小时前
                                    </div>
                                    <div class="menu-messages-content">
                                        <div class="menu-messages-content-title">
                                            <i class="am-icon-circle-o am-text-success"></i>
                                            <span>夕风色</span>
                                        </div>
                                        <div class="am-text-truncate"> Amaze UI 的诞生，依托于 GitHub 及其他技术社区上一些优秀的资源；Amaze UI
                                            的成长，则离不开用户的支持。
                                        </div>
                                        <div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
                                    </div>
                                </a>
                            </li>

                            <li class="tpl-dropdown-menu-messages">
                                <a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
                                    <div class="menu-messages-ico">
                                        <img src="/plugin/amaze/img/user02.png" alt="">
                                    </div>
                                    <div class="menu-messages-time">
                                        5天前
                                    </div>
                                    <div class="menu-messages-content">
                                        <div class="menu-messages-content-title">
                                            <i class="am-icon-circle-o am-text-warning"></i>
                                            <span>禁言小张</span>
                                        </div>
                                        <div class="am-text-truncate"> 为了能最准确的传达所描述的问题， 建议你在反馈时附上演示，方便我们理解。</div>
                                        <div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
                                    </div>
                                </a>
                            </li>
                            <li class="tpl-dropdown-menu-messages">
                                <a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
                                    <i class="am-icon-circle-o"></i> 进入列表…
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 新提示 -->
                    <li class="am-dropdown" data-am-dropdown>
                        <a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
                            <i class="am-icon-bell"></i>
                            <span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
                        </a>

                        <!-- 弹出列表 -->
                        <ul class="am-dropdown-content tpl-dropdown-content">
                            <li class="tpl-dropdown-menu-notifications">
                                <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <div class="tpl-dropdown-menu-notifications-title">
                                        <i class="am-icon-line-chart"></i>
                                        <span> 有6笔新的销售订单</span>
                                    </div>
                                    <div class="tpl-dropdown-menu-notifications-time">
                                        12分钟前
                                    </div>
                                </a>
                            </li>
                            <li class="tpl-dropdown-menu-notifications">
                                <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <div class="tpl-dropdown-menu-notifications-title">
                                        <i class="am-icon-star"></i>
                                        <span> 有3个来自人事部的消息</span>
                                    </div>
                                    <div class="tpl-dropdown-menu-notifications-time">
                                        30分钟前
                                    </div>
                                </a>
                            </li>
                            <li class="tpl-dropdown-menu-notifications">
                                <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <div class="tpl-dropdown-menu-notifications-title">
                                        <i class="am-icon-folder-o"></i>
                                        <span> 上午开会记录存档</span>
                                    </div>
                                    <div class="tpl-dropdown-menu-notifications-time">
                                        1天前
                                    </div>
                                </a>
                            </li>


                            <li class="tpl-dropdown-menu-notifications">
                                <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <i class="am-icon-bell"></i> 进入列表…
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 退出 -->
                    <li class="am-text-sm">
                        <a href="/user/logout.php">
                            <span class="am-icon-sign-out"></span> 退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    </header>
    <!-- 风格切换 -->
    <#--<div class="tpl-skiner">-->
        <#--<div class="tpl-skiner-toggle am-icon-cog">-->
        <#--</div>-->
        <#--<div class="tpl-skiner-content">-->
            <#--<div class="tpl-skiner-content-title">-->
                <#--选择主题-->
            <#--</div>-->
            <#--<div class="tpl-skiner-content-bar">-->
                <#--<span class="skiner-color skiner-white" data-color="theme-white"></span>-->
                <#--<span class="skiner-color skiner-black" data-color="theme-black"></span>-->
            <#--</div>-->
        <#--</div>-->
    <#--</div>-->

    <!-- 侧边导航栏 -->
    <div class="left-sidebar">
        <!-- 用户信息 -->
        <div class="tpl-sidebar-user-panel">
            <div class="tpl-user-panel-slide-toggleable">
                <div class="tpl-user-panel-profile-picture">
                    <img src="/user/getImgHred?id=<@shiro.principal property="imgHred"/>" alt="">
                </div>
                <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
                ${user.logName!''}
          </span>
                <a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
            </div>
        </div>








        <!-- 菜单 -->
        <ul class="sidebar-nav">
            <li class="sidebar-nav-heading">碧叶之源 <span class="sidebar-nav-heading-info"> 列表</span></li>



            <li class="sidebar-nav-link">
                <a href="/main/indexUrl.php" <#if (choiceView!'') == "index">class="active"</#if> >
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 主页
                </a>

                <#--拥有admin权限的才展示这个-->
            <@shiro.hasRole name="admin">
                <a href="/main/trunkUrl.php" <#if (choiceView!'') == "baseInfo" >class="active"</#if> >
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 基础数据管理
                </a>
            </@shiro.hasRole>

                <#--有权限查询权限的才能看到这个-->
            <@shiro.hasPermission name="admin:sys.author:query">
                 <a href="/author/listAuthorityViewUrl.php" <#if (choiceView!'') == "authorView" || (choiceView!'') == "authorAddUpd" >class="active"</#if> >
                     <i class="am-icon-table sidebar-nav-link-logo"></i> 权限管理
                 </a>
            </@shiro.hasPermission>


                <a href="/author/listRoleViewUrl.php" <#if (choiceView!'') == "roleView" || (choiceView!'') == "roleAddUpd" >class="active"</#if> >
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 角色管理
                </a>
                <a href="/author/userViewUrl.php" <#if (choiceView!'') == "userAuthor" || (choiceView!'') == "userView" >class="active"</#if> >
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 授权管理
                </a>

                <a href="/main/main.php">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 碧叶之源
                </a>

            </li>

        </ul>
    </div>





    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">


        <div class="row-content am-cf">

            <div id="particles-js">
                <#--待嵌套数据的区域-->
                <#if (choiceView!'') == "baseInfo">
                <#--基础数据添加-->
                    <#include "/branch/baseInfo.ftl">

                <#elseif (choiceView!'') == "authorView">
                <#--权限展示页面-->
                    <#include "/authority/authorView.ftl">

                <#elseif (choiceView!'') == "authorAddUpd">
                <#--权限添加或修改页面-->
                    <#include "/authority/authorAddUpd.ftl">

                <#elseif (choiceView!'') == "roleView">
                <#--角色展示页面-->
                    <#include "/authority/roleView.ftl">

                <#elseif (choiceView!'') == "roleAddUpd">
                <#--角色新增和修改-->
                    <#include "/authority/roleAddUpd.ftl">

                <#elseif (choiceView!'') == "userAuthor">
                <#--用户的授予角色页面-->
                    <#include "/authority/userAuthor.ftl">

                <#elseif (choiceView!'') == "userView">
                <#--用户角色页面-->
                    <#include "/authority/userView.ftl">

                <#elseif (choiceView!'') == "index">
                <#-- 主页 -->
                    <#include "/authority/index.ftl">


                </#if>
            </div>








        </div>



    </div>
</div>

<#--JS 部分 -->

<#--星空JS-->
<script src="/plugin/starrySky/js/particles.min.js"></script>
<script src="/plugin/starrySky/js/app.js"></script>

<script type="text/javascript" src="/plugin/amaze/js/echarts.min.js"></script>
<script type="text/javascript" src="/plugin/amaze/js/theme.js"></script>
<script type="text/javascript" src="/js/common/base.js" ></script>
<#--可实现表单和文件一起上传的插件-->
<script type="text/javascript" src="/js/common/jquery-form.js"></script>
<#--ztree树js-->
<script type="text/javascript" src="/plugin/ztree_v3/js/jquery.ztree.all.js"></script>
<#--layer.js，只需要引入这个，css会自动引入-->
<script type="text/javascript" src="/plugin/layer-v3.1.1/layer.js"></script>
<#--laydate.js 时间组件-->
<script type="text/javascript" src="/plugin/laydate/laydate.js"></script>
<#--分页-->
<script type="text/javascript" src="/js/common/initPage.js"></script>

<#--自己的js-->
<#--妹子UI-->
<script type="text/javascript" src="/plugin/amaze/js/amazeui.min.js"></script>
<script type="text/javascript" src="/plugin/amaze/js/amazeui.datatables.min.js"></script>
<script type="text/javascript" src="/plugin/amaze/js/dataTables.responsive.min.js"></script>
<script type="text/javascript" src="/plugin/amaze/js/app.js"></script>


<script type="text/javascript">


</script>

</body>


</html>
